package com.hanhai.zrb.api.biz.service;

import java.util.Date;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.hanhai.zrb.model.user.UserFollow;

public interface UserFollowService {

	void follow(UserFollow follow);
	
	void unfollow(UserFollow follow);
	
	List<UserFollow> followingListByUpdateTime(Long fromUserId,Date updateTime,Integer limit);
	
	List<UserFollow> followedListByUpdateTime(Long toUserId,Date updateTime,Integer limit);
	
	Integer relation(Long fromUserId,Long toUserId);

	PageInfo followingListPage(Long fromUserId, Integer page, Integer rows);

	PageInfo followedListPage(Long toUserId, Integer page, Integer rows);
	
	/**我关注了哪些人*/
	List<Long> followingListAllToUserId(Long fromUserId);

	/**我被哪些人关注*/
	List<Long> followedListAllFromUserId(Long toUserId);
}